From 691f95de5c589fa41338f00c83d1a242a9144e3f Mon Sep 17 00:00:00 2001 From: Timothy Bess Date: Thu, 1 Mar 2018 17:14:57 -0500 Subject: [PATCH] Issue #5087 * change match to if --- src/cargo/ops/cargo_compile.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cargo/ops/cargo_compile.rs b/src/cargo/ops/cargo_compile.rs index dcb3acfbc..34cc9d63e 100644 --- a/src/cargo/ops/cargo_compile.rs +++ b/src/cargo/ops/cargo_compile.rs @@ -156,11 +156,11 @@ impl<'a> Packages<'a> { } }; if specs.is_empty() { - match ws.is_virtual() { - true => bail!("manifest path `{}` contains no package: The manifest is virtual, \ - and the workspace has no members.", ws.root().display()), - false => bail!("no packages to compile"), + if ws.is_virtual() { + bail!("manifest path `{}` contains no package: The manifest is virtual, \ + and the workspace has no members.", ws.root().display()) } + bail!("no packages to compile") } Ok(specs) } -- 2.30.2